package com.faithbj.controller.suspend;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import com.faithbj.common.configuration.Pager;
import com.faithbj.common.web.controller.BaseController;
import com.faithbj.service.CheckTotalService;

/**
 * 抽查类
 * @author xyuser
 *
 */
@Controller
@RequestMapping("/suspend")
public class SuspendController extends BaseController {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8756186395374983876L;
	
	@Resource
	private CheckTotalService checkTotalService;
	
	/**
	 * 抽查待办列表,会从小熊哪里发一个INTERRUPTED
	 * @param pager
	 * @param map
	 * @return
	 */
	@RequestMapping(value = "/index")
	public String list(Pager pager,ModelMap map) {
	
//		List<CheckTotal> list=jbpmService.pupu(State.INTERRUPTED)
		pager = checkTotalService.getCheckTotalListForApplyInfo(pager);
		map.put("pager", pager);
		return "/stopVerify/index";
	}	


}
